<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title>Document</title>
  <style type="text/css">
  
  
  .main{

    padding-top: 100px;
  }
  .form-inline textarea.content{ 
    height: 100px;
    width: 80%;
  }


  </style>
  <link rel="stylesheet" href="./tpl/css/bootstrap.min.css" >
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">留言板</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form navbar-right" action="./logi.php" method="post">
            <div class="form-group">
              <input placeholder="用户名" name ="username" class="form-control" type="text">
            </div>
            <div class="form-group">
              <input placeholder="密码"name ="password" class="form-control" type="密码">
            </div>
            <button type="submit" class="btn btn-success">登录1111</button>
          </form>
        </div><!--/.navbar-collapse -->
      </div>
    </nav>
    
    
  <div class="col-md-12" style="margin-top:100px;">
     <?php var_dump($row) ?>
        <form class="form-inline" method="post" action="./save.php">
           <div class="col-md-12">
          <div class="form-group">
            <label for="exampleInputName2">用户名</label>
            <input type="text" class="form-control" id="exampleInputName2" name="username" placeholder="Jane Doe" value="<?php echo $row['username'] ?>">
        </div>
          
          <button type="submit" class="btn btn-success">留言</button>
        </div>
       <div class="col-md-12" style="margin-top:40px;width:100%;" >
          <textarea class="form-control content" rows="3" name="content"><?php echo $row['content'] ?></textarea>
          <input type="hidden" name="id" value="<?php echo $id ?>">
        </div>
    </form>
</div>

    
  
</body>
</html>